package cn.crm.controller;

import cn.crm.clue.ClueServiceApi;
import cn.crm.entity.Clue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class ClueClientController {
    @Resource
    private ClueServiceApi clueServiceApi;

    @GetMapping
    public Object listClue(Clue clue,Integer current,Integer size){
        return clueServiceApi.list(clue,current,size);
    }
}
